﻿<ul class="navigation">
    @if (Session.GetRol() == AppRol.Administrador)
    {
        <li class="@(ViewBag.Section == "Dashboard" ? "active" : "")">
            <a href="@Url.Action("AdministradorIndex","Home")"><i class="menu-icon fa fa-dashboard"></i><span class="mm-text">Dashboard</span></a>
        </li>
    <li class="mm-dropdown mm-dropdown-root @(ViewBag.Section == "Mantenimientos" ? "open active" : "")">
        <a href="#"><i class="menu-icon fa fa-th"></i><span class="mm-text">Mantenimientos</span></a>
        <ul>
            <li class="@(ViewBag.SubSection == "Trabajadores" ? "active" : "")">
                <a tabindex="-1" href="@Url.Action("LstTrabajadoresAll", "Employee")"><span class="mm-text">Trabajadores</span></a>
            </li>
            <li class="@(ViewBag.SubSection == "Clientes" ? "active" : "")">
                <a tabindex="-1" href="@Url.Action("LstClientes","Client")"><span class="mm-text">Clientes</span></a>
            </li>
            <li class="@(ViewBag.SubSection == "Sucursales" ? "active" : "")">
                <a tabindex="-1" href="@Url.Action("LstSucursalesAll","Branch")"><span class="mm-text">Sucursales</span></a>
            </li>
        </ul>
    </li>
    }
    else if (Session.GetRol() == AppRol.Trabajador)
    {
      <li class="@(ViewBag.Section == "Dashboard" ? "active" : "")">
            <a href="@Url.Action("AdministradorIndex","Home")"><i class="menu-icon fa fa-dashboard"></i><span class="mm-text">Dashboard</span></a>
        </li>
    <li class="mm-dropdown mm-dropdown-root @(ViewBag.Section == "Mantenimientos" ? "open active" : "")">
        <a href="#"><i class="menu-icon fa fa-th"></i><span class="mm-text">Mantenimientos</span></a>
        <ul>
            <li class="@(ViewBag.SubSection == "Trabajadores" ? "active" : "")">
                <a tabindex="-1" href="@Url.Action("ListTrabajadores", "Employee")"><span class="mm-text">Trabajadores</span></a>
            </li>
            <li class="@(ViewBag.SubSection == "Clientes" ? "active" : "")">
                <a tabindex="-1" href="@Url.Action("ListClientes","Client")"><span class="mm-text">Clientes</span></a>
            </li>
        </ul>
    </li>
    }
</ul> <!-- / .navigation -->